import { service } from "./index";
const request = service;

export const checfile = (params) =>
  request.get(
    "/file/check-file?" + "fileName=" + params.fileName + "&md5=" + params.md5,
    params
  ); //检查文件
export const putFile = (params) => request.post("/file/check-file", params); //文件上传
export const sendsms = (params) => request.post("/blade-auth/sms", params); //发送验证码
export const addpicture = (params) => request.post("/v1/model/add", params); //发布图片
export const download = (params) => request.get("/v3/download", params); //发布图片
export const userinfo = (params) => request.post("/v1/user/detail", params); //用户信息
export const add = (params) => request.post("/file/add", params); //用户信息
export const searchmodel = (params) => request.post("/v1/model/search", params); //上传搜索模型
export const searchList = (params) => request.post("/v1/index/search", params); //列表加搜索
export const detail = (params) => request.post("/v1/model/detail", params); //查询商品详情
export const loginNow = (params) => request.post("/blade-auth/login", params); //密码登录
export const register = (params) =>
  request.post("/blade-auth/register", params); //注册/
export const captcha = (params) => request.post("/blade-auth/captcha", params); //验证
export const reqGet = (params) => request.post("/captcha/get", params); //给码
export const reqCheck = (params) => request.post("/captcha/check", params); //验证
export const getdetailinfo = (params) =>
  request.post("/v1/user/model/detail", params); //验证
export const tst = (params) => request.post("/v1/user/tst", params); //miyao
export const Modnickname = (params) => request.post("/v1/user/update", params); //miyao
export const getoter = (params) => request.post("/v1/user/detailById", params); //miyao
export const like = (params) => request.post("/v1/model/like/add", params); //点赞
export const deletelike = (params) =>
  request.post("/v1/model/like/delete", params); //取消点赞
export const likelist = (params) => request.post("/v1/model/like/list", params); //点赞列表
export const addcollect = (params) =>
  request.post("/v1/model/collect/add", params); //创建收藏夹
export const collectlist = (params) =>
  request.post("/v1/model/collect/list", params); //收藏夹列表
export const deletecollect = (params) =>
  request.post("/v1/model/collect/delete", params); //删除收藏夹列表
export const additemCollect = (params) =>
  request.post("/v1/model/collectModel/add", params); //添加收藏
export const updateCollect = (params) =>
  request.post("/v1/model/collect/update", params); //编辑收藏
export const deleteCollect = (params) =>
  request.post("/v1/model/collectModel/delete", params); //取消收藏
export const downloadClick = (params) =>
  request.post("/v1/model/download", params); //下载
export const guanzhu = (params) => request.post("/v1/user/cares/add", params); //关注
export const modelDetails = (params) =>
  request.post("/v1/model/details", params); //查询模型所有版本(正常上架)
export const modelDetailsExamine = (params) =>
  request.post("/v1/model/details/examine", params); //编辑查询模型所有版本
export const modelOther = (params) => request.post("/v1/model/other", params); //查询模型更多信息
export const categoryList = (params) =>
  request.post("/v1/model/categoryList", params); //查询分类列表
export const evaluate = (params) => request.post("/v1/model/evaluate", params); //评分
export const commentAdd = (params) =>
  request.post("/v1/model/commentAdd", params); //评论
export const commentGet = (params) =>
  request.post("/v1/model/commentGet", params); //评论列表
export const ckptData = (params) => request.post("/v1/ckpt/data", params); //获取模型checkpoint ckpt选项
export const modelUpdate = (params) => request.post("/v1/model/update", params); //修改模型
export const imgUpdate = (params) => request.post("/v1/img/update", params); //修改图片
export const modelAddVersion = (params) =>
  request.post("/v1/add/version", params); //添加版本
export const list = (params) => request.post("/v1/software/list", params); //分类
export const collectModelList = (params) =>
  request.post("/v1/model/collectModel/list", params); //收藏夹列表
export const getdetails = (params) => request.post("/v1/model/details", params); //查询版本
export const deleteuser = (params) =>
  request.post("/v1/user/cares/delete", params); //取消关注
export const ke = (params) => request.post("/v1/config/ke", params); // 分类列表
export const forget = (params) =>
  request.post("/blade-auth/repassword", params); // 忘记密码
export const modealdel = (params) => request.post("/v1/model/del", params); // 删除模型
export const getToken = (params) => request.post("/v1/get/token", params); // 获取创作token
export const activityup = (params) => request.post("/v1/add/activity", params); // 比赛作品
export const activitydetail = (params) =>
  request.post("/v1/list/activity", params); // 比赛详情
export const moxintuku = (params) => request.post("/v1/model/images", params); // 模型图库
export const allzuoping = (params) => request.post("/v1/list/approved", params); // 比赛作品
export const activity = (params) => request.post("/v1/score/activity", params); // 作品评分
export const toupiao = (params) => request.post("/v1/praise/activity", params); // 作品投票
export const options = (params) =>
  request.post("/v1/posts/plate/options", params); // 圈子分区
export const getactivity = (params) =>
  request.post("/v1/awards/activity", params); // 获奖作品
export const getevent = (params) => request.post("/v1/list/event", params); // 查询活动
export const getnotice = (params) => request.post("/v1/list/notice", params); // 查询站内消息
export const eventRead = (params) => request.post("/v1/add/eventRead", params); // 已读消息
export const banner = (params) => request.post("/v1/list/banner", params); // banner图
export const noticeRecode = (params) => request.post("/v1/list/notice", params); // 站内消息
export const complaint = (params) => request.post("/v1/complaint", params); // 投诉隐藏
export const reset = (params) => request.post("/v1/complaint/reset", params); // 取消屏蔽
export const bindWechat = (params) =>
  request.post("/v1/user/bindWechat", params); // 绑定微信
export const wechattoken = (params) =>
  request.post("/blade-auth/wechat/token", params); // 绑定微信
export const tick = (params) => request.get("/blade-auth/wc/tick"); // 二维码
export const scantick = (params) =>
  request.get("/blade-auth/wechat/token" + params.id); // 二维码扫码
export const bindfont = (params) => request.post("/blade-auth/wc/bind", params); // 绑定
export const bindwcchat = (params) =>
  request.get("/v1/wechat/bind" + params.id); // 绑定微信
export const putuserData = (params) => request.post("v1/userData/put", params); // 用户信息
export const getfy = (params) => request.post("v1/alyun/fy", params); // 翻译
export const tex2img = (params) => request.post("v1/sd/tex2img", params); // SD生图

export const sketch = (params) => request.post("/v1/clipdrop/sketch", params); // 涂鸦
export const sketchlist = (params) => request.post("/v1/clipdrop/list", params); // 涂鸦历史
export const background = (params) => request.post("/v1/clipdrop/background", params); // 删除
export const inpainting = (params,headers) => service.post("/v1/clipdrop/inpainting",params,headers); //上传图片
